cmake_minimum_required(VERSION 3.0.0)

set(VIDEO_CAPTURE_LIBRARY VIDEO_CAPTURE)

find_package(OpenCV REQUIRED)

add_library(${VIDEO_CAPTURE_LIBRARY} STATIC src/VideoCapture.cpp)
target_include_directories(${VIDEO_CAPTURE_LIBRARY} PUBLIC ${OpenCV_INCLUDE_DIRS})
target_link_libraries(${VIDEO_CAPTURE_LIBRARY} PUBLIC ${OpenCV_LIBS})
target_include_directories(${VIDEO_CAPTURE_LIBRARY} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)

set(VIDEO_CAPTURE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/include PARENT_SCOPE)
set(VIDEO_CAPTURE_LIBS ${VIDEO_CAPTURE_LIBRARY} PARENT_SCOPE)
